<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<!-- 得到当前上下文路径，如果有一天上下文路径发生了改变，当前页面请求的路径就不用变化  -->
<% String basePath = request.getServletContext().getContextPath(); %>

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form action="<%=basePath%>/custom/login" method="post">
		用户名: <input type="text" name="name"/> <br/>
		密码: <input type="password" name="pwd"/> <br/>
		<input type="submit" value="登录"/> 
	</form>
</body>
</html>